import Vue from 'vue';
import VueRouter from 'vue-router';
import './css/gird.css';
import VueResouse from 'vue-resource';
const router = new VueRouter(require('./router'));
//开启debug模式
Vue.config.debug = true;
const App = require('./app.vue');
Vue.use(VueRouter);
Vue.use(VueResouse);




const app = new Vue({
    router: router,
    render: h => h(App),

}).$mount('#app')

router.afterEach((to, from, next) => {
    document.title = to.name;

});
